home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Language/OS - Multiplatform Resource Library
/
LANGUAGE OS.iso
/
lisp
/
clue.lha
/
clue
/
doc
/
clue.tex
/
node258_mn.html
< prev
next >
Wrap
Text File
|
1989-07-12
|
3KB
|
83 lines
<H3><A ID="SECTION007211100000000000000"><tex2html_anchor_invisible_mark></A> <A ID="ch:contact-class-resources"><tex2html_anchor_mark></A><BR>
Contact Resources
</H3><#5412#>
<P>
Every contact has a set of resources which are initialized automatically
when the contact is created by the <#3648#><TT>make-contact</TT><#3648#> function (see
Section~<A HREF=<tex2html_cr_mark>#ch:creation#3649><tex2html_cr_mark></A>).<A ID="3650"><tex2html_anchor_invisible_mark></A>
If initial values for contact resources are not given as arguments to
<#3651#><TT>make-contact</TT><#3651#>, then initial values are looked up in the resource
database given by the value of the special variable <#3652#><TT>*database*</TT><#3652#>.<A ID="3653"><tex2html_anchor_invisible_mark></A>
<P>
Two types of resources may be associated with a contact. <#3654#><B>Class
resources</B><#3654#> are determined by the contact class. Class resources are
defined by a <#3655#><TT>:resources</TT><#3655#> option in the <#3656#><TT>defcontact</TT><#3656#> form
defining the contact class.<A ID="3657"><tex2html_anchor_invisible_mark></A>
The <#3658#><TT>class-resources</TT><#3658#> function may be used to return a list of
contact class resources.
<P>
<#4736#>
<#4551#><FONT SIZE="+1"><#3659#><B>class-resources Function</B><#3659#></FONT><#4551#>
<A ID="3660"><tex2html_anchor_invisible_mark></A>
<DIV class="RIGHT">
<tex2html_image_mark>#tex2html_wrap_inline10593#
</DIV><#4736#>
<P>
<DIV class="RIGHT">
<tex2html_image_mark>#tex2html_wrap_inline10595#
</DIV>
<P>
A contact may also have <#3673#><B>constraint
resources</B><#3673#><A ID="3674"><tex2html_anchor_invisible_mark></A> which are determined by the class
of the contact's parent. Constraint resources are
defined by a <#3675#><TT>:constraints</TT><#3675#> option in the <#3676#><TT>defcontact</TT><#3676#> form
defining the parent class.<A ID="3677"><tex2html_anchor_invisible_mark></A>
The <#3678#><TT>class-constraints</TT><#3678#> function may be used to return the list of
constraint resources defined by a contact class.
<P>
Constraint resources allow a parent composite to ``attach'' resources to
its children without the knowledge of the children themselves. More
precisely, the set of constraint resources belonging to a contact is
defined by the programmer of the <#3679#><EM>parent</EM><#3679#> class, not the programmer
of the contact's class. Constraint resources are typically used to
control the parent's geometry management policy. The <#3680#><TT>contact-constraint</TT><#3680#> macro may be used to return or change the value of a
contact constraint resource.
<P>
<#4737#>
<#4554#><FONT SIZE="+1"><#3681#><B>class-constraints Function</B><#3681#></FONT><#4554#>
<A ID="3682"><tex2html_anchor_invisible_mark></A>
<DIV class="RIGHT">
<tex2html_image_mark>#tex2html_wrap_inline10596#
</DIV><#4737#>
<P>
<DIV class="RIGHT">
<tex2html_image_mark>#tex2html_wrap_inline10598#
</DIV>
<P>
<#4738#>
<#4557#><FONT SIZE="+1"><#3695#><B>contact-constraint Macro</B><#3695#></FONT><#4557#>
<A ID="3696"><tex2html_anchor_invisible_mark></A>
<DIV class="RIGHT">
<tex2html_image_mark>#tex2html_wrap_inline10599#
</DIV><#4738#>
<P>
<DIV class="RIGHT">
<tex2html_image_mark>#tex2html_wrap_inline10601#
</DIV>
<P>
=0